package cn.jiyun.feign;

import cn.jiyun.pojoday08.Course;
import cn.jiyun.pojoday08.CourseDTO;
import cn.jiyun.pojoday08.CourseVO;
import com.github.pagehelper.PageInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Author: 小周
 * @Package: cn.jiyun.feign
 * @Project: 2210A-project1
 * @name: TestService
 * @Date: 2023/8/23 19:34
 * @Filename: TestService
 */
@FeignClient(value = "day05course")
public interface TestService2 {



    @RequestMapping("/course/toZan")
    public List<Course> toZan();

    //根据用户id  去查询竞赛数量
    @RequestMapping("/course/findNewcom")
    public List<Course> findNewcom();

    @RequestMapping("/course/toCourseAll")
    PageInfo<CourseVO> toCourseAll(@RequestBody CourseDTO courseDTO);
    @RequestMapping("/course/toCourseInfo")
     public CourseVO toCourseInfo(@RequestParam("cid") Integer cid);
}
